class Complex {
private :
	double r, i;
public:
	Complex(double r, double i) :r(r), i(i) {}
	Complex operator+(double r) { return Complex(this->r + r, i); }
	friend Complex operator+(double r, const Complex& c); 
};

Complex operator+(double r, const Complex& c)
{
	return Complex(r + c.r, c.i);
}

int main()
{
	return 0;
}